/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Interfata;

/**
 * Clasa ce implementeaza sablonul Memento
 * @author AlinT
 */
public class Memento {
	private String fct, drv;
	private String ics, val, msg;

	public Memento(String f, String x, String d, String v, String m) {
		this.fct = f;
                this.ics = x;
		this.drv = d;
                this.val = v;
                this.msg = m;
	}

        /**
         * Restaureaza toate textField-urile la starea precedenta
         */
	public void restoreData() {
		GUInterfata.setFunctie(fct);
		GUInterfata.setDerivata(drv);
                GUInterfata.setIcs(ics);
                GUInterfata.setValoare(val);
                GUInterfata.setMesaj(msg);
	}

}